<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <meta name="description" content=""/>
    <meta name="author" content=""/>
    <link rel="icon" href="./img/asset-favicon.ico"/>
    <title>社交-吐槽</title>
    <!-- 页面 css js -->
    <link rel="stylesheet" type="text/css" href="./plugins/normalize-css/normalize.css"/>
    <link rel="stylesheet" type="text/css" href="./plugins/yui/cssgrids-min.css"/>
    <link rel="stylesheet" type="text/css" href="./plugins/sui/sui.min.css"/>
    <link rel="stylesheet" type="text/css" href="./plugins/sui/sui-append.min.css"/>
    <link rel="stylesheet" type="text/css" href="./plugins/font-awesome/css/font-awesome.min.css"/>
    <link rel="stylesheet" type="text/css" href="./css/widget-base.css"/>
    <link rel="stylesheet" type="text/css" href="./css/widget-head-foot.css"/>
    <link rel="stylesheet" type="text/css" href="./plugins/bootstrap/dist/css/bootstrap.min.css"/>
    <link rel="stylesheet" type="text/css" href="./css/page-sj-spit-index.css"/>
</head>
<body>
<div class="wrapper" id="app">
    <!--引用组件-->
    <!--头部导航-->
    <header>
        <div class="sui-navbar">
            <div class="navbar-inner">
                <a href="/" class="sui-brand"><img src="./img/asset-logo-black.png" alt="社交"/></a>
                <ul class="sui-nav">
                    <li><a href="/">头条</a></li>
                    <li><a href="./qa-logined.html">问答</a></li>
                    <li><a href="./activity-index.html">活动</a></li>
                    <li><a href="/">交友</a></li>
                    <li class="active"><a href="./spit-index.html">吐槽</a></li>
                    <li><a href="/">招聘</a></li>
                </ul>
                <form class="sui-form sui-form pull-left">
                    <input type="text" placeholder="输入关键词..."/>
                    <span class="btn-search fa fa-search"></span>
                </form>
                <div v-if="username" class="sui-nav pull-right info">
                    <li><a href="./other-notice.html" target="_blank" class="notice">通知</a></li>
                    <li class="hover"><span class="fa fa-plus "></span>
                        <ul class="hoverinfo">
                            <li><i class="fa fa-share-alt" aria-hidden="true"></i> <a href="./headline-submit.html">去分享</a>
                            </li>
                            <li><i class="fa fa-question-circle" aria-hidden="true"></i> <a href="./qa-submit.html"
                                                                                            target="_blank">提问题</a>
                            </li>
                            <li><i class="fa fa-comments" aria-hidden="true"></i><a href="./spit-submit.html"
                                                                                    target="_blank">去吐槽</a></li>
                            <li><i class="fa fa-heartbeat" aria-hidden="true"></i> <a
                                    href="./makeFriends-submit.html" target="_blank">发约会</a></li>
                        </ul>
                    </li>
                    <li><a href="./person-homepage.html" target="_blank" class="homego"><img
                            src="./img/widget-photo.png" alt="用户头像"/></a></li>
                </div>
                <div v-else class="sui-nav pull-right info">
                    <li><a href="./person-loginsign.html" target="_blank">注册</a></li>
                    <li><a href="./person-loginsign.html" target="_blank" class="sui-btn btn-login">登录</a></li>
                </div>
            </div>
        </div>
    </header>
    <!--两列布局-->
    <div class="wrapper tag-item">
        <div class="fl left-list">
            <div class="tc-data-list">
                <div class="tc-list" >
                    <ul class="detail-list">
                        <li class="qa-item" v-for="spit in spits">
                            <div class="fl record">
                                <div class="number">
                                    <div class="border useful">
                                        <p class="usenum"><a href="#" @click="toggle_like(spit)" class="zan"><i class="fa fa-thumbs-up "
                                                                                     aria-hidden="true"></i></a></p>
                                        <span class="zannum"> {{ spit.like }} </span>
                                    </div>
                                    <div class="border answer">
                                        <a href="#" class="star"><i class="fa fa-star-o" aria-hidden="true"></i></a>
                                    </div>
                                </div>
                            </div>
                            <div class="info">
                                <p class="text" ><a :href="'./spit-detail.html?spit_id='+spit.id" target="_blank" v-html="spit.title">
                                    {{ spit.title }}</a>
                                </p>
                                <div class="other">
                                    <div class="fl date">
                                        <span>{{ spit.create_time | str2date | str2ymd}}</span>
                                    </div>
                                    <div class="fr remark">
                                        <a href="#" data-toggle="modal" data-target="#shareModal" class="share"><i
                                                class="fa fa-share-alt" aria-hidden="true"></i> 分享</a>
                                        <a href="#" data-toggle="modal" data-target="#remarkModal" class="comment"><i
                                                class="fa fa-commenting" aria-hidden="true"></i></a>
                                    </div>
                                </div>
                            </div>
                            <div class="clearfix"></div>
                        </li>
                    </ul>
                </div>
            </div>
            <!-- <script>
           $(function () {
               $(".zan").click(function () {
                   $(this).children(".fa").toggleClass("color");
                   var c = parseInt($(this).parent().siblings(".zannum").html());
                   c = c++;
               });
               $(".star").click(function () {
                   console.log("eeee");
                   $(this).children(".fa").removeClass("fa-star-o").addClass("fa-star color");
               });
               $(".detail-list").unbind("scroll").bind("scroll", function (e) {
                   var sum = this.scrollHeight;
                   if (sum - 10 <= $(this).scrollTop() + $(this).height()) {
                       $(".detail-list").append($("li").clone());
                   }
               });
           })

       </script> -->
        </div>
        <div class="fl right-tag">
            <div class="block-btn">
                <p>来个匿名吐槽，发泄一下你心中的怒火吧！</p>
                <a class="sui-btn btn-block btn-share" href="./spit-submit.html" target="_blank">发吐槽</a>
            </div>
        </div>
        <div class="clearfix"></div>
    </div>
</div>
<div class="footer">

</div>

</body>
</html>
<script src="plugins/jquery/dist/jquery.min.js">
</script>
<script src="./js/vue-2.5.16.js"></script>
<script src="./js/axios-0.18.0.min.js"></script>
<script src="./plugins/jquery/dist/jquery.min.js"></script>


<script src="./js/base.js"></script>
<script src="./js/spit-index.js"></script>
